import sys
import locale


class Text:
    def __init__(self, language):
        self.language = language
        self.texts = {'howToPlay':{'ko_KR': '시작하시려면'\
                                          'Q(쉬움), W(보통),  E(어려움)'\
                                          '중 하나를 누르십시오.',
                                  'en_US':'Press Q (Easy), W (Normal) or E (Hard)' \
                                          ' to start.',
                                  'zh_CN':'按Q（简单）、W（普通）或E（困难）开始'},
                     'second':{'ko_KR':'초',
                               'en_US': 'second(s)',
                               'zh_CN': '秒'}, }
        

    def getText(self, text) -> str:
        if not self.texts[text][self.language]:
            return text
        else:
            return self.texts[text]['en_US']
        
        
text = Text(locale.getdefaultlocale()[0])
